[IA64] fix compilation error of xen/common/spinlock.c
authorIsaku Yamahata <yamahata@valinux.co.jp>
Wed, 22 Oct 2008 02:38:22 +0000 (11:38 +0900)
committerIsaku Yamahata <yamahata@valinux.co.jp>
Wed, 22 Oct 2008 02:38:22 +0000 (11:38 +0900)
This patch fixes the error in the x86 tree.
> spinlock.c: In function _spin_lock_recursive:
> spinlock.c:59: error: dereferencing pointer to incomplete type

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
xen/include/asm-ia64/linux-xen/asm/smp.h

index a8a143a54b7854fafca27bb62bcab4bbf303098c..558702b2009769243ca8d788e2de0bc0b441f7fb 100644 (file)
@@ -47,6 +47,7 @@ ia64_get_lid (void)
 #define SMP_IPI_REDIRECTION    (1 << 1)
 
 #ifdef XEN
+#include <xen/sched.h>
 #define raw_smp_processor_id() (current->processor)
 #else
 #define raw_smp_processor_id() (current_thread_info()->cpu)